package adapter;

/**
 * TODO 简单说明
 *
 * @author yangyang
 * @date 2017/8/25 15:01
 * @email kekecany@163.com
 */
public class Client {

    public static void main(String[] args) {
        LogDbOperateApi dbOperate = new LogDbOperate();
        LogFileOperateApi fileOperate = new LogFileOperate();

        LogFileOperateApi fileOperate2 = new TwoDirectAdapter(fileOperate, dbOperate);
        LogDbOperateApi dbOperate2 = new TwoDirectAdapter(fileOperate, dbOperate);

        dbOperate2.createLog(null);

        fileOperate2.writeToLogFile(null);
        fileOperate2.readLogFile();
    }

}
